package org.pp.admin.dto;


import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class SysUserEdite {
    @Schema(description = "系统用户id")
    @TableId
    private Long userId;


    @Schema(description = "姓名/昵称")
    @NotBlank(message = "姓名不为空")
    private String name;

    @Schema(description = "手机号")
    @Pattern(regexp = "^$|^1\\d{10}$",message = "手机号格式错误")
    private String phone;

    @Schema(description = "角色id")
    List<Long> roleIds;
}
